<div id="login" data-role="view" data-title="Rest Full api client" data-show="onLoginShow">
	<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'login-form',
    'type'=>'horizontal',
    'errorMessageCssClass'=>'error',
    'enableClientValidation'=>true,	
    'clientOptions'=>array(
     'validateOnSubmit'=>true,
	),
)); ?>
   
	<div align="center" style="margin-top: 40px;">
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td>
					<!--
				<div id="div_logo" style="width:300px;height:80px;" class="login-header" align="center">
					
					<img id="imgLogo" style="padding-left:5px; padding-top:20px;width:auto;" class="z-image" src="<?php //echo Yii::app()->getBaseUrl(true)."/img/maybanhang_logo.png"; ?>">
				   
				</div>
				 -->
				</td>
			</tr>
			<tr>
				<td>
				<div style="width:300px;" class="login-body" align="center">
					<table>
						<tr>
							<td>
							<div>
								<span class="login-label" >Tên đăng nhập</span>
							</div>							
							<?php echo $form->textFieldRow($model, 'username', array('class'=>'login-textbox'));?>
							</td>
						</tr>
						<tr>
							<td>
							<div>
								<span class="login-label" >Mật khẩu</span>
							</div>
							<?php echo $form->passwordFieldRow($model, 'password', array('class'=>'login-textbox'));?>
							</td>
						</tr>
						<tr>
							<td>
								<!--
							<div>
								<span class="login-label">Mã cửa hàng</span>
							</div>
							<?php //echo $form->textFieldRow($model, 'accountNo', array('class'=>'login-textbox'));?>
							</td>
						      -->
						</tr>
                                                
                                                
                                                <tr>
							<td>
							<?php echo $form->checkBox($model,'rememberMe'); ?> Ghi nhớ đăng nhập.
		
							</td>
						</tr>
                                                                         
						<tr>
							<td align="center">
								<div>
									<?php echo $form->error($model,'success'); ?>
                                                                        
                                                                        <span id="LoginForm_success_em_" class="help-inline error"> 
                                                                            <?php 
                                                                        if(isset($message)){
                                                                            echo $message;
                                                                        }
                                                                        ?></span>
                                                                       
                                                                    
								</div>		
								<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit','type'=>'primary','label'=>'Đăng nhập', 'icon'=>'ok', 'htmlOptions'=>array('class'=>'login-button')));?>
							</td>
						</tr>
					</table>
				</div></td>
			</tr>
		</table>
	</div>
	<?php $this->endWidget(); ?>
</div>


<script>
	
	var app = new kendo.mobile.Application(document.body);
	function onLoginShow()
	{
		$("#LoginForm_username").focus();
	}
	 
</script>